﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="left.aspx.cs" Inherits="left" %>

<%@ Register Assembly="Camstar.WebClient.FormsBuilder.WebControls" Namespace="Camstar.WebClient.FormsBuilder.WebControls"
    TagPrefix="fb" %>
<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v11.1, Version=11.1.20111.2158, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<!DOCTYPE>
<html>
<head id="Head1" runat="server">
    <title></title>
    <link rel="StyleSheet" href="styles/dtree.css" type="text/css" />
    <script type="text/javascript" src="scripts/dtree.js"></script>
    <style type="text/css">
        *
        {
            margin:0;
            padding:0;
        }
        .before
        {
            color: Black;
            text-decoration: none;
        }
        .after
        {
            color: Red;
            text-decoration: none;
        }
        .over
        {
            color: Green;
            text-decoration: none;
        }
    </style>
    <script type="text/javascript">
        var temp;
        var CurrentColor;
        function spanOnclick(obj) {
            if (temp != null) {
                temp.className = CurrentColor;
            }
            CurrentColor = "after";
            temp = obj;
            obj.className = CurrentColor;
        }
        function over(obj) {
            CurrentColor = obj.className;
            obj.className = 'over';
        }
        function out(obj) {
            obj.className = CurrentColor;
        }
    </script>
    <script type="text/javascript">
        function checkTime(me) {
            var rex = new RegExp("^[1-9][0-9]{1,3}$");
            if (!rex.test(me.value)) {
                me.value = 60;
            }
            //  refreshMenu();
        }
        var curNum = 1;

        function refreshMenu(obj, chk) {

            var max = 7;
            if (curNum > max) {
                curNum = 1;
            }
            obj = document.getElementById("selectmenu" + curNum);
            chk = document.getElementById("chkRefresh");

            //  alert(chk.checked);
            if (chk.checked) {
                obj.click();
                curNum++;
            }

            var timeNum = document.getElementById("txtTime").value;
            window.setTimeout(refreshMenu, timeNum * 1000);
        }

    </script>
</head>
<body>
    <form runat="server" id="form1">
    <div style="display: none">
        <span>时间设定：</span>
        <input id="txtTime" type="text" style="width: 32px; font-family: 幼圆; text-align: center;
            color: Red; font-weight: bolder;" onchange="checkTime(this);" value="60" />
        <span>秒</span>&nbsp;
        <asp:CheckBox ID="chkRefresh" runat="server" Text="自动切换" />
    </div>
    </form>
    <div class="dtree">
        <% =strSbuider%>
    </div>
    <%--<div class="dtree">
        <script type="text/javascript">
		<!--

            //id, pid, name, url, title, target, icon, iconOPne, open,

            d = new dTree('d');
            d.config.target = "mainFrame";
            d.config.folderLinks = false;

            // ----------------- INTRODUCTION ------------------//
            d.add(0, -1, '<B>报表系统</B>', '', 'MES决策支持系统');

            d.add(1, 0, '生产看板', '', '看板形式显示数据', '', '', '', true);
            d.add(100, 1, '镁铝机匣工区生产看板', 'lmjxProcess_LookBoard.aspx', '镁铝机匣工区生产看板');
            d.add(101, 1, '刚性机匣工区生产看板', 'gxjxProcess_LookBoard.aspx', '刚性机匣工区生产看板');
            d.add(102, 1, '新机研制工区生产看板', 'xjyzProcess_LookBoard.aspx', '新机研制工区生产看板');
            d.add(103, 1, '关注产品输入界面', 'uMESProductInputForm.aspx', '关注产品输入界面');
            d.add(104, 1, '通知输入界面', 'NoticationInput.aspx', '通知输入界面');
            d.add(105, 1, '外协进度看板', 'wxProgress_KB.aspx', '外协进度看板');
            d.add(106, 1, '中央电子看板', 'CentralElectron_KB.aspx', '中央电子看板');
            d.add(107, 1, '质量问题看板', 'QualityLooKBoard.aspx', '质量问题看板');
            d.add(108, 1, '检验任务看板', 'conventionLooKBoard.aspx', '检验任务看板');
            d.add(109, 1, '工具室生产问题处理看板', 'MfgProblemLookBoard.aspx?Name=工具室', '工具室生产问题处理看板');
            d.add(110, 1, '工艺室生产问题处理看板', 'MfgProblemLookBoard.aspx?Name=工艺室', '工艺室生产问题处理看板');
            d.add(111, 1, '调度室生产问题处理看板', 'MfgProblemLookBoard.aspx?Name=调度室', '调度室生产问题处理看板');
            d.add(112, 1, '生产保障组生产问题处理看板', 'MfgProblemLookBoard.aspx?Name=生产保障组', '生产保障组生产问题处理看板');
            d.add(113, 1, '配送组生产问题处理看板', 'MfgProblemLookBoard.aspx?Name=配送组', '配送组生产问题处理看板');
            d.add(114, 1, '工装准备看板', 'PrepareLookBoard.aspx', '工装准备看板');

            d.add(2, 0, '生产报表', '', '报表形式显示数据', '', '', '', true);
            d.add(200, 2, '生产派报工报表', 'ProductionDispatchReport.aspx', '生产派报工报表');
            d.add(201, 2, '外协转工报表', 'uMESdaSynergicReport.aspx', '外协转工报表');
            d.add(202, 2, '工时统计报表', 'uMESWorkTimeCountReport.aspx', '工时统计报表');
            d.add(202, 2, '工时型别统计报表', 'uMESWorkTimeCountByTypeReport.aspx', '工时统计报表');
            d.add(203, 2, '生产进度完成报表', 'ProcessSchedualCompleteForm.aspx', '生产进度完成报表');
            d.add(204, 2, '订单完成报表', 'uMESorderCompleteReport.aspx', '订单完成报表');
            d.add(205, 2, '入库统计报表', 'uMESInStoreReport.aspx', '入库统计报表');
            d.add(206, 2, '在制品统计报表', 'ProductWipForm.aspx', '在制品统计报表');
            d.add(207, 2, '投料统计报表', 'WeekBomContainerForm.aspx', '投料统计报表');
            d.add(208, 2, '关注零件生产进度报表', 'AttendedSpecProcessForm.aspx', '关注零件生产进度报表');
            d.add(209, 2, '检验作业统计报表', 'kSpecProcessForm.aspx', '检验作业统计报表');
            d.add(210, 2, '不合格品统计报表', 'uMESqualityrecordReport.aspx', '不合格品统计报表');
            d.add(211, 2, '报废品统计报表', 'uMESScrapinfoReport.aspx', '报废品统计报表');

            document.write(d);
        </script>
    </div>--%>
    <script type="text/javascript">
        var obj = document.getElementById("selectmenu" + curNum);
        var chk = document.getElementById("chkRefresh");
        refreshMenu(obj, chk);
    </script>
</body>
</html>
